import BlButton from "../packages/bl-button";

const components = [
    BlButton
]

const install  = function(Vue) {
    if (install.installed) return
    components.map(component => Vue.component(component.name, component) )
}

 // 判断是否是直接引入文件
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue)
}

export {
    // 导出的对象必须具有 install，才能被 Vue.use() 方法安装
    install as BLUI,
    // 以下是具体的组件列表
    BlButton
}